home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / VIEWEX.PAK / MAINDOC.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  1KB  |  41 lines

  1. // maindoc.h : interface of the CMainDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. class CMainDoc : public CDocument
  14. {
  15. protected: // create from serialization only
  16.     CMainDoc();
  17.     DECLARE_SERIAL(CMainDoc)
  18.  
  19. // Attributes
  20. public:
  21.     // an example of document specific data
  22.     CString m_strData;          // string text
  23.     COLORREF m_colorData;       // color for the string text
  24.  
  25. // Implementation
  26. public:
  27.     virtual ~CMainDoc();
  28.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  29. protected:
  30.     virtual BOOL    OnNewDocument();
  31.  
  32. // Generated message map functions
  33. protected:
  34.     //{{AFX_MSG(CMainDoc)
  35.     afx_msg void OnChangeData();
  36.     //}}AFX_MSG
  37.     DECLARE_MESSAGE_MAP()
  38. };
  39.  
  40. /////////////////////////////////////////////////////////////////////////////
  41.